import { auth } from '/@/utils/common'

export const showDownloadButton = (row: TableRow) => {
    return row.file_exist && auth({ name: '/admin/shop/order/export', subNodeName: '/admin/shop/order/export/exportData' })
}

export const showRetryButton = (row: TableRow) => {
    // 待导出和导出失败才可以重新运行
    return !row.file_exist && row.status != 1 && auth({ name: '/admin/shop/order/export', subNodeName: '/admin/shop/order/export/retryTask' })
}
